package com.situ.root.goodsB.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.situ.root.goodsB.mapper.GoodsBMapper;
import com.situ.root.goodsB.model.GoodsBModel;
import com.situ.root.goodsB.service.IGoodsBService;

@Service
public class GoodsBServiceImpl implements IGoodsBService{

	@Autowired
	private GoodsBMapper goodsBMapper;
	
	@Override
	public int insert(GoodsBModel model) {
		return goodsBMapper.insert(model);
	}
	
	@Override
	public int delete(Object id) {
		return goodsBMapper.delete(id);
	}
	
	@Override
	public int update(GoodsBModel model) {
		return goodsBMapper.update(model);
	}
	
	@Override
	public int updates(GoodsBModel model) {
		return goodsBMapper.updates(model);
	}
	
	@Override
	public List<GoodsBModel> selectList(GoodsBModel model) {
		return goodsBMapper.selectAll(model);
	}
	
	@Override
	public Integer selectCount(GoodsBModel model) {
		return goodsBMapper.selectCount(model);
	}
}
